// 存放路由列表
import { lazy } from 'react';

const routers = [
  {
    path: '/',
    component: lazy(() => import('../components/pages/Home')),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/home',
    component: lazy(() => import('../components/pages/Home')),
    meta: {
      title: '首页'
    }
  },
  {
    path: '/about',
    component: lazy(() => import('../components/pages/About')),
    meta: {
      title: '相关'
    }
  },
  {
    path: null,
    redirect: lazy(() => import('../components/pages/NotFound')),
    meta: {
      title: '404'
    }
  }
];

export default routers;